﻿<html>
<head>
	<title>问答频道</title>
	<meta http-equiv="Content-Type" content="text/xml; charset=UTF-8">
</head>
<body>
	<a href = "/CodeIgniter/ask">问答首页</a>&rarr;我的积分<?=$myMark ?>
	<br/><br/>
	<table border=1>
		<tr>
		<h3>我的提问</h3>
		</tr>
		<tr>
			<td>问题</td>
			<td width="80"><center>类型</center></td>
			<td width="150"><center>提问时间</center></td>
			<td>回答</td>
			<td>悬赏</td>
		</tr>
		
	  	<tr>
		    <? foreach($myQuestion as $row1):?>
					<td><a href="/CodeIgniter/questions/<?=$row1->qid ?>"><?=$row1->qtitle ?></a></td>
					<td><center><a href="/CodeIgniter/questions/ctags/<?=$row1->cid ?>"><?=$row1->cname ?></a></center></td>
					<td><center><?=$row1->qpostdate ?></center></td>
					<td><center><?=$row1->qanswercount ?></center></td>
					<td><center><?=$row1->qprice ?></center></td>
		</tr>
			<? endforeach; ?>
	</table>
	<br/><br/>
	
	<table border=1>
		<tr>
		<h3>我回答的问题</h3>
		</tr>
		<tr>
			<td>问题</td>
			<td width="80"><center>类型</center></td>
			<td width="150"><center>提问时间</center></td>
			<td>回答</td>
			<td>悬赏</td>
		</tr>
		
	  	<tr>
		    <? foreach($myAnswer as $row2):?>
					<td><a href="/CodeIgniter/questions/<?=$row2->qid ?>"><?=$row2->qtitle ?></a></td>
					<td><center><a href="/CodeIgniter/questions/ctags/<?=$row2->cid ?>"><?=$row2->cname ?></a></center></td>
					<td><center><?=$row2->qpostdate ?></center></td>
					<td><center><?=$row2->qanswercount ?></center></td>
					<td><center><?=$row2->qprice ?></center></td>
		</tr>
			<? endforeach; ?>
	</table>
	<br/><br/>
	
	<table border=1>
		<tr>
		<h3>我解决的问题</h3>
		</tr>
		<tr>
			<td>问题</td>
			<td width="80"><center>类型</center></td>
			<td width="150"><center>提问时间</center></td>
			<td>回答</td>
			<td>悬赏</td>
		</tr>
		
	  	<tr>
		    <? foreach($mySolvedQuestion as $row3):?>
					<td><a href="/CodeIgniter/questions/<?=$row3->qid ?>"><?=$row3->qtitle ?></a></td>
					<td><center><a href="/CodeIgniter/questions/ctags/<?=$row3->cid ?>"><?=$row3->cname ?></a></center></td>
					<td><center><?=$row2->qpostdate ?></center></td>
					<td><center><?=$row2->qanswercount ?></center></td>
					<td><center><?=$row2->qprice ?></center></td>
		</tr>
			<? endforeach; ?>
	</table>
	<a href = "/CodeIgniter/profile">修改个人资料</a>
</body>
</html>